package com.session1;

public class Dog extends Animal {
    public Dog(String food, String sound) {
        super(food, sound);
    }

    @Override
    public void eat() {
        System.out.println("小狗喜欢啃" + this.getFood());
    }

    @Override
    public void sound() {
        System.out.println("小狗" + this.getSound() + "叫");
    }

    public void walk() {
        System.out.println("小狗喜欢溜圈");
    }
}
